﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Sharp_Explorer
{
    public partial class ComputerIn : Form
    {
        public string results;

        public ComputerIn()
        {
            InitializeComponent();
        }

        private void ComputerIn_Load(object sender, EventArgs e)
        {
            //return txtComp.Text;
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            boolsFlip();
        }

        private void boolsFlip()
        {
            bool needAuth = radioButton1.Checked;

            label1.Enabled = !needAuth;
            label2.Enabled = !needAuth;
            txtUserName.Enabled = !needAuth;
            txtPassword.Enabled = !needAuth;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            results = txtComp.Text;

            this.Close();
        }
    }
}
